package com.chuanke.ckfamily.dao.base;

/**
 * 分页
 */
public class Page {

	public static final int PAGE_SIZE = 30;
	
	
	public static final int PAGE_SIZE_50 = 50;

	//开始位置
	private int pageNo;

	 //结束位置
	private int pageSize;
	
	public Page() {
		this(0);
	}
	
	public Page(Integer pageNo) {
		this(pageNo, PAGE_SIZE);
	}

	public Page(Integer pageNo,Integer pageSize) {
		if(pageNo==null){
			pageNo=0;
		}
		this.pageNo = pageNo * pageSize;
		this.pageSize = pageSize;
	}
	
	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	
	
	
	

}
